package org.jeecg.modules.inspect.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * @Description: 配置规则
 * @Author: jeecg-boot
 * @Date:   2023-11-24
 * @Version: V1.0
 */
@Data
@TableName("ins_rule")
@ApiModel(value="ins_rule对象", description="配置规则")
public class InsRule implements Serializable {
    private static final long serialVersionUID = 1L;

	/**卡ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "规则ID")
    private java.lang.String id;

	/**规则名称*/
    @Excel(name = "规则名称", width = 15)
    @ApiModelProperty(value = "规则名称")
    private java.lang.String ruleName;

	/**执行角色*/
    @Excel(name = "执行角色", width = 15, dictTable = "sys_role", dicText = "role_name", dicCode = "id")
    @Dict(dictTable = "sys_role", dicText = "role_name", dicCode = "id")
    @ApiModelProperty(value = "执行角色")
    private java.lang.String roleId;

	/**执行周期*/
    @Excel(name = "执行周期", width = 15, dicCode = "execute_cycle")
    @Dict(dicCode = "execute_cycle")
    @ApiModelProperty(value = "执行周期")
    private java.lang.String executeCycle;

	/**执行次数*/
    @Excel(name = "执行次数", width = 15)
    @ApiModelProperty(value = "执行次数")
    private java.lang.Integer executeNum;

	/**规则类型*/
    @Excel(name = "规则类型", width = 15, dicCode = "rule_type")
    @Dict(dicCode = "rule_type")
    @ApiModelProperty(value = "规则类型")
    private java.lang.String ruleType;

	/**线路*/
    @Excel(name = "线路", width = 15, dictTable = "ins_line", dicText = "line_name", dicCode = "id")
    @Dict(dictTable = "ins_line", dicText = "line_name", dicCode = "id")
    @ApiModelProperty(value = "线路")
    private java.lang.String lineId;

	/**人员*/
    @Excel(name = "人员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "人员")
    private java.lang.String userId;

	/**部门*/
    @Excel(name = "部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "部门")
    private java.lang.String departId;

	/**规则状态*/
    @Excel(name = "规则状态", width = 15, dicCode = "rule_status")
    @Dict(dicCode = "rule_status")
    @ApiModelProperty(value = "规则状态")
    private java.lang.String ruleStatus;

	/**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;

	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;

	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;

	/**删除标记 0正常 1已删除*/
    @Excel(name = "删除标记 0正常 1已删除", width = 15)
    @ApiModelProperty(value = "删除标记 0正常 1已删除")
    //@TableLogic
    private java.lang.Integer delFlag;

	/**组织机构编码*/
    @ApiModelProperty(value = "组织机构编码")
    private java.lang.String sysOrgCode;

}
